home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Masters of Flash
/
New Masters of Flash.iso
/
pc
/
MOVIES
/
03.dir
/
00108_Text_108.txt
< prev
next >
Wrap
Text File
|
2000-09-30
|
591b
|
17 lines
To give it a more natural behaviour I also used the ΓÇÿy2ΓÇÖ-Variable to set the X-scale of the flashlight.
Set Property ("/light2/light", X Scale) = 100-(y2/5)
The whole Action-script to move and alter the flashlight is now:
x1 = getProperty("/light2", _x);
y1 = getProperty("/light2", _y);
x2 = int((x1-380)/4.22);
y2 = int((y1-300)*-0.8);
if (y2<100) {
y2 = 100;
}
setProperty ("/light2/light", _rotation, x2);
setProperty ("/light2/light", _yscale y2);
setProperty ("/light2/light", _xscale, 100-(y2/5));
setProperty ("/switch/case", _rotation, int((x2*-0.7))=67)